﻿@model ClientViewModel
<div class="row">
    <div class="col-md-4">
        <form asp-route-returnUrl="@ViewData["ReturnUrl"]" method="post">
            <h4>注册客户端</h4>
            <h4 style="color:red;">@ViewData["Error"]</h4>
            <hr />
            <div asp-validation-summary="All" class="text-danger"></div>
            <div class="form-group">
                <label asp-for="ClientId"></label>
                <input asp-for="ClientId" class="form-control" />
                <span asp-validation-for="ClientId" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="ClientName"></label>
                <input asp-for="ClientName" class="form-control" />
                <span asp-validation-for="ClientName" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="AllowedGrantTypes"></label>
                <input asp-for="AllowedGrantTypes" class="form-control" />
                <span asp-validation-for="AllowedGrantTypes" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="ClientSecrets"></label>
                <input asp-for="ClientSecrets" class="form-control" />
                <span asp-validation-for="ClientSecrets" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="RedirectUris"></label>
                <input asp-for="RedirectUris" class="form-control" />
                <span asp-validation-for="RedirectUris" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="PostLogoutRedirectUris"></label>
                <input asp-for="PostLogoutRedirectUris" class="form-control" />
                <span asp-validation-for="PostLogoutRedirectUris" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="AllowedScopes"></label>
                <input asp-for="AllowedScopes" class="form-control" />
                <span asp-validation-for="AllowedScopes" class="text-danger"></span>
            </div>
            <div class="form-group">
                <div class="checkbox">
                    <label asp-for="AllowOfflineAccess">
                        <input asp-for="AllowOfflineAccess" />
                        @Html.DisplayNameFor(m => m.AllowOfflineAccess)
                    </label>
                </div>
            </div>
            <div class="form-group">
                <label asp-for="AllowedCorsOrigins"></label>
                <input asp-for="AllowedCorsOrigins" class="form-control" />
                <span asp-validation-for="AllowedCorsOrigins" class="text-danger"></span>
            </div>
            <div class="form-group">
                <div class="checkbox">
                    <label asp-for="AllowAccessTokensViaBrowser">
                        <input asp-for="AllowAccessTokensViaBrowser" />
                        @Html.DisplayNameFor(m => m.AllowAccessTokensViaBrowser)
                    </label>
                </div>
                
            </div>

            <button type="submit" class="btn btn-default">注册</button>
        </form>
    </div>
</div>
